package com.desmart.renjiao.announcement;

import com.desmart.renjiao.bean.Announcement;
import com.lemon.library.mvp.BaseModel;
import com.lemon.library.mvp.BasePresenter;
import com.lemon.library.mvp.BaseView;

import java.util.List;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;

public interface AnnouncementList{

    interface AnnouncementListM extends BaseModel{

        Observable<ResponseBody> getTheNotice(String url,RequestBody string);

        Observable<ResponseBody> getTheNews(String url,RequestBody string);

    }

    interface AnnouncementListV extends BaseView{

        void getListSuccess(List<Announcement> list);
    }

    abstract class AnnouncementListP extends BasePresenter<AnnouncementListM,AnnouncementListV>{

        abstract void getAnnouncement(int pageNum,String LoginName);

        abstract void getTheNews(int pageNum,String LoginName);

    }

}
